package ngat.oss.simulation;

import java.util.*;

import ngat.phase2.*;

/** Provides access to the set of proposals in the phase2 ODB.*/
public interface Phase2Model {

    /** Return the model's root name.*/
    public String getRootName() throws Exception;

    /** Return a list of proposals.*/
    public Iterator listProposals() throws Exception;
    
    /** Get a specific proposal.*/
    public Proposal getProposal(String path) throws Exception;

    /** Add a new proposal.*/
    public void addProposal(Proposal proposal) throws Exception;

    /** Delete a proposal.*/
    public void removeProposal(Proposal proposal) throws Exception;
}
